home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mm / mm-0.90 / s-sysv3b2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-18  |  9.5 KB  |  271 lines

  1. /*
  2.  * Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  3.  * the City of New York.  Permission is granted to any individual or
  4.  * institution to use, copy, or redistribute this software so long as it
  5.  * is not sold for profit, provided this copyright notice is retained.
  6.  */
  7.  
  8. #ifdef RCSID
  9. #ifndef lint
  10. static char *s_sysv3b2_rcsid = "$Header: /f/src2/encore.bin/cucca/mm/tarring-it-up/RCS/s-sysv3b2.h,v 1.2 90/10/04 18:26:07 melissa Exp $";
  11. #endif
  12. #endif /* RCSID */
  13.  
  14. /*
  15.  * s-sysv3b2.h - configuration file for 3b2 system V
  16.  */
  17.  
  18. /* This definition is required.  It appears in the inet.h file
  19.  * which comes with the TWG software.
  20.  */
  21. typedef unsigned long u_long;
  22.  
  23. /*
  24.  * The HOSTNAME macro is used only as a last resort, if no other way
  25.  * of determining the hostname will work.  If you have a domain name,
  26.  * i.e. there are dots in the official name of your host, include only
  27.  * the first component of the name.
  28.  */
  29. /* #define HOSTNAME "aqfc"        /* local hostname */
  30.  
  31. /*
  32.  * If you have an official domain name for your host, and the domain name
  33.  * is not discernible with gethostbyname(3), define LOCALDOMAIN
  34.  * to be the name of your domain, preceded by a "."; otherwise, define
  35.  * LOCALDOMAIN to be a null string.  For example, if the name of your host
  36.  * is podunk.edu, you should specify:
  37.  *    #define LOCALDOMAIN ".edu"
  38.  * If your host is vax.cs.podunk.edu, you'd use
  39.  *    #define LOCALDOMAIN ".cs.podunk.edu"
  40.  */
  41. /* #define LOCALDOMAIN ".af.mil"    /* local domain */
  42.  
  43. /*
  44.  * If your site likes to make outgoing mail appear as if it all comes
  45.  * from one central host, define HIDDENNET as the name of that host.
  46.  * Otherwise, leave HIDDENNET undefined.
  47.  */
  48. /* #define HIDDENNET "mailhost.ourdomain.edu"    /* fake mail host name */
  49.  
  50. /*
  51.  * If your operating system supports filenames longer than 14 characters,
  52.  * I.e. you are running a Berkeley UNIX derivative, define FLEXFILENAMES.
  53.  * If you are running some sort of operating system which supports
  54.  * long filenames only on remote filesystems (e.g. HP-UX 6.0), don't
  55.  * define it.
  56.  */
  57. /*#define HAVE_FLEXFILENAMES        /* we don't have long filenames */
  58.  
  59. /*
  60.  * If you have the Berkeley sendmail program, define SENDMAIL to be the
  61.  * pathname by which it should be invoked.
  62.  */
  63. #define SENDMAIL "/usr/lib/sendmail"    /* we have sendmail */
  64.  
  65. /*
  66.  * Define SPOOL_DIRECTORY to be the name of the directory to which
  67.  * new mail is delivered.  On System V-based systems, this is usually
  68.  * /usr/mail; on Berkeley systems, it's usually /usr/spool/mail.
  69.  */
  70. #define SPOOL_DIRECTORY "/usr/mail"
  71.  
  72. /*
  73.  * If your mailer supports .forward files, and you want MM to display
  74.  * the contents of .forward file (you may not wish to do this if it's
  75.  * likely that a user's .forward file will be ignored because of conflicting
  76.  * entries in /usr/lib/aliases), define FORWARD_FILE as the name of the
  77.  * file in the user's home directory.
  78.  */
  79. #define FORWARD_FILE ".forward"        /* we use .forward files */
  80.  
  81. /*
  82.  * If you have GNU Emacs, define GNUEMACS to be the name with which it
  83.  * is usually referred by your users.  If GNUEMACS is not defined, special
  84.  * code used to interface MM with GNU Emacs will not be compiled into MM.
  85.  */
  86. /*#define GNUEMACS "emacs"        /* we have GNU Emacs */
  87.  
  88. /*
  89.  * If you have, and use, the Sun Yellow Pages facility, define
  90.  * HAVE_YP.
  91.  */
  92. /*#define HAVE_YP                /* we use yp */
  93.  
  94. /*
  95.  * If you have NFS and users will be referencing mail files on remote
  96.  * filesystems, define HAVE_NFS.
  97.  */
  98. /*#define HAVE_NFS            /* we use NFS */
  99.  
  100. /*
  101.  * Define one or more of NEED_FCNTL, NEED_UNISTD, and NEED_SYSFILE
  102.  * as appropriate, depending on whether or not MM has to include
  103.  * <fcntl.h>, <unistd.h>, and/or <sys/file.h> in order to obtain
  104.  * the symbol definitions used in the open(2), fcntl(2), flock(2),
  105.  * lockf(2), and lseek(2) system calls.
  106.  */
  107. #define NEED_FCNTL            /* include <fcntl.h> */
  108. #define NEED_UNISTD            /* include <unistd.h> */
  109. #undef NEED_SYSFILE
  110.  
  111. /*
  112.  * You will probably need this, but you may want to undefine it if
  113.  * another system header file includes it automatically.
  114.  */
  115. #define NEED_IOCTL            /* include <sys/ioctl.h> */
  116.  
  117. /*
  118.  * MM needs to refer to definitions which may appear in either
  119.  * <time.h> or <sys/time.h>, depending on what kind of system you have.
  120.  * <time.h> usually contains the definition of the "tm" struct, while
  121.  * on many BSD-based systems, <sys/time.h> will include the same information
  122.  * in addition to the "timeval" and "timezone" structs.  Define one or
  123.  * the other, or both, as appropriate.
  124.  */
  125. #undef NEED_SYSTIME            /* include <sys/time.h> */
  126. #define NEED_TIME            /* don't include <time.h> */
  127.  
  128. /*
  129.  * Define NEED_WAIT if your system defines "union wait" in <sys/wait.h>
  130.  * See also HAVE_WAIT3 below.
  131.  */
  132. /*#define NEED_WAIT            /* include <sys/wait.h> */
  133.  
  134. /*
  135.  * Define HAVE_WAIT3 if your system has the wait3() system call.
  136.  */
  137. /*#define HAVE_WAIT3            /* we have wait3() */
  138.  
  139. /*
  140.  * Define JOBS if your system has job control.  Currently 4.2 job control
  141.  * is the only type supported.
  142.  */
  143. /*#define HAVE_JOBS            /* we have job control */
  144.  
  145. /*
  146.  * Define HAVE_BSD_SIGNALS if you have the 4.2BSD-style signal handling
  147.  * facilities.
  148.  */
  149. /*#define HAVE_BSD_SIGNALS        /* we have 4.2 signals */
  150.  
  151. /*
  152.  * If you have support for disk quotas, and you use them, define QUOTAS
  153.  * Otherwise leave it undefined.
  154.  */
  155. /*#define HAVE_QUOTAS            /* we have quota support and use it */
  156.  
  157. /*
  158.  * If you defined QUOTAS above, define QUOTACTL if your system has quotactl(2)
  159.  * system call.  If this is defined, MM also expects to find quota.h in
  160.  * <sys/quota.h> rather than <ufs/quota.h>.
  161.  */
  162. #undef HAVE_QUOTACTL            /* we have quotactl(), not quota() */
  163.  
  164. /*
  165.  * Define HAVE_INDEX if your system has index(3) and rindex(3) rather than
  166.  * than strchr(3) and strrchr(3).
  167.  */
  168. /*#define HAVE_INDEX            /* we have index & rindex */
  169.  
  170. /*
  171.  * Define HAVE_BSTRING if you have bcopy(3), bzero(3), and bcmp(3).  These
  172.  * are usually present on BSD-based systems, and missing on older systems
  173.  * where MM will use memcpy(3), memset(3), and memcmp(3).
  174.  */
  175. /*#define HAVE_BSTRING            /* we have bcopy and friends */
  176.  
  177. /*
  178.  * Define HAVE_VFORK if your system has the vfork(2) system call.
  179.  */
  180. /*#define HAVE_VFORK            /* we have vfork() */
  181.  
  182. /*
  183.  * Define GETWD if you have getwd(2).  Most BSD-based systems should.
  184.  */
  185. /*#define HAVE_GETWD            /* we have the bsd getwd() */
  186.  
  187. /*
  188.  * Define HAVE_GETCWD if you have getcwd(3) rather than getwd(2).  This will
  189.  * be true on most SYSV-based systems.
  190.  */
  191. #define HAVE_GETCWD            /* we don't have getcwd() */
  192.  
  193. /*
  194.  * Define HAVE_GETHOSTNAME if you have the gethostname(2) system call, and
  195.  * HAVE_GETHOSTBYNAME if you have get gethostbyxxxx(3) library routines.
  196.  * This is generally true on BSD-based systems, and some SYSV systems.
  197.  * They should be undefined if you either don't have them, or don't use
  198.  * them (because they're broken?).
  199.  */
  200. /*#define    HAVE_GETHOSTNAME        /* we have gethostname() */
  201. #define    HAVE_GETHOSTBYNAME        /* we have gethostbyname() */
  202.  
  203. /*
  204.  * Define HAVE_UNAME if you don't have the gethostname(2) system call,
  205.  * but you do have uname(2).  This is usually true on non-networked
  206.  * SYSV systems.
  207.  */
  208. #undef HAVE_UNAME            /* we don't have uname() */
  209.  
  210. /*
  211.  * Define PHOSTNAME if you have neither gethostname(2) or uname(2).
  212.  * It's value should be a string containing a UNIX command which will
  213.  * print your system's hostname.
  214.  */
  215. /*#define PHOSTNAME "hostname"    /* program that prints our hostname */
  216.  
  217. /*
  218.  * Define HAVE_RENAME if you have the rename(2) system call, or an equivalent
  219.  * C library routine.  This is true on later BSD releases and SVR3.
  220.  */
  221. /*#define HAVE_RENAME            /* we have rename() */
  222.  
  223. /*
  224.  * Define one of more of the following symbols, depending on what file-
  225.  * locking facilities are available on your system.  MM prefers the fcntl
  226.  * locking facility, since lockf and flock don't work on remote files when
  227.  * using NFS.
  228.  * 
  229.  * If you have the fcntl facility for locking file regions, define
  230.  * HAVE_F_SETLK (should be true of most systems with SVR2 (?) file locking).
  231.  * If you have flock(2) (most BSD-based systems), define HAVE_FLOCK.
  232.  * If you have lockf(2) (most SYSV systems), define HAVE_FLOCK.
  233.  */
  234. #define HAVE_F_SETLK            /* fcntl locks file regions */
  235. /*#define HAVE_FLOCK            /* flock locks whole files */
  236. /*#define HAVE_LOCKF            /* lockf works too */
  237.  
  238. /*
  239.  * If your /bin/mail program uses the flock(2) system call to prevent
  240.  * simultaneous access to files in /usr/mail or /usr/spool/mail, define
  241.  * MAIL_USE_FLOCK.  If this is not defined, the movemail program will
  242.  * attempt to lock files in the spool directory using lock files.
  243.  *
  244.  * If you're not sure whether or not to define this symbol, you might
  245.  * be able to find the answer by consulting the sources for /bin/mail
  246.  * on your system, or looking in the appropriate s-*.h file from the
  247.  * GNU Emacs distribution.  If you have the strings(1) program, you
  248.  * can run "strings /usr/spool/mail" to see if any ".lock" files exist
  249.  * there.
  250.  */
  251. /*#define MAIL_USE_FLOCK        /* ultrix /bin/mail uses flock(2) */
  252.  
  253. /* 
  254.  * 
  255.  * Define HAVE_BSD_SETPGRP if your system's setpgrp() system call takes two
  256.  * arguments.  This is generally true on later BSD releases with job control.
  257.  * On some systems, there is both a SYSV setpgrp() call and a setpgrp2() call,
  258.  * the latter of which takes two arguments like the BSD setpgrp() call.  If
  259.  * that's true on your system, you should probably also add
  260.  *    #define setpgrp setpgrp2
  261.  * unless your system somehow figures this out automatically.
  262.  */
  263. /*#define HAVE_BSD_SETPGRP        /* setpgrp() takes two args */
  264.  
  265. /*
  266.  * Define VOIDSIG if your <signal.h> defines signal(2) as void (*signal())().
  267.  * This seems to be true in System V Release 3.
  268.  */
  269. #define HAVE_VOIDSIG            /* we use void (*signal())() */
  270.  
  271.